const log4js = require('log4js');
log4js.configure({
    appenders: [{
        type: 'DateFile',
        filename: 'acl',
        pattern: '-yyyy-MM-dd.log',
        alwaysIncludePattern: true,
        // category: 'acl'
    }, {
        type: 'console'
    }]
});
const logger = log4js.getLogger("[ACL]");
logger.debug("time:", new Date());
logger.info("haha");
logger.warn("xshit");
logger.error("there is an error");